﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="print.aspx.cs" Inherits="WR.UI.MobWebApp.print" %>

<!doctype html>
<html lang="es" manifest="app.manifest"><head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	
	<title>Maestro Per&uacute;</title>
	<meta name="description" content="">
	<meta name="author" content="">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<link rel="shortcut icon" href="/favicon.ico">
	<link rel="apple-touch-icon" href="/apple-touch-icon.png">
	<link rel="stylesheet" href="css/style.css?v=2">
	<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2">
	<script src="js/libs/modernizr-1.7.min.js" type="text/javascript"></script></head>
<body>
    <form id="frmMain" runat="server">
	<div id="container">		
	    <img id="imgMain" runat="server" src="img/logo.jpg" alt="Maestro Perú" title="Maestro Perú" />
        <label id="lblErrorMsg" runat="server" class="errMsg" />
        <label id="lblOkMsg" runat="server" />
		<br /><br />
        <label id="lblCabecera" runat="server" class="titulo" style="font-size: medium;" />
        <article>
            <br /><br />
            <table>
                <tr style="border-bottom-style: none;">
                    <td style="padding-left: 0px;">Cliente:</td>
                    <td><label id="lblCliente" runat="server" /></td>
                </tr>
                <tr style="border-bottom-style: none;">
                    <td style="padding-left: 0px;">R.U.C.:</td>
                    <td><label id="lblRuc" runat="server" /></td>
                </tr>
                <tr style="border-bottom-style: none;">
                    <td style="padding-left: 0px;">Forma de pago:</td>
                    <td><label id="lblPago" runat="server"></label></td>
                </tr>
                <tr style="border-bottom-style: none;">
                    <td style="padding-left: 0px;">Moneda:</td>
                    <td><label id="lblMoneda" runat="server"></label></td>
                </tr>
                <tr style="border-bottom-style: none;">
                    <td style="padding-left: 0px;">Fecha:</td>
                    <td><label id="lblFecha" runat="server"></label></td>
                </tr>
            </table>
            <br /><br />
        </article>
        <br />
        <article>
            <asp:ListView ID="lvDetalle" runat="server">
                <LayoutTemplate>
                    <table runat="server" id="table1">
                        <tr>
                            <th>Pos</th>
                            <th>C&oacute;digo EAN</th>
                            <th>Descripci&oacute;n</th>
                            <th>Cantidad</th>
                            <th>UM</th>
                            <th>Precio</th>
                            <th>Total</th>
                        </tr>
                        <tr runat="server" id="itemPlaceholder"></tr>
                        <tr>
                            <td colspan="6">&nbsp;</td>
                            <td style="text-align:right;"><label id="lblTotal" runat="server"></label></td>
                        </tr>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="Tr1" runat="server">
                      <td id="Td2" runat="server">
                        <%#Eval("Pos") %>
                      </td>
                      <td id="Td3" runat="server">
                        <%#Eval("Material.Ean")%>
                      </td>
                      <td id="Td4" runat="server">
                        <%#Eval("Material.Descripcion") %>
                      </td>
                      <td id="Td5" runat="server" style="text-align:right;">
                        <%#Eval("Cant", "{0:,0}")%>
                      </td>
                      <td id="Td6" runat="server" style="text-align:right;">
                        <%#Eval("UMedida")%>
                      </td>
                      <td id="Td7" runat="server" style="text-align:right;">
                        <%#Eval("Material.Precio", "{0:,0.00}")%>
                      </td>
                      <td id="Td8" runat="server" style="text-align:right;">
                        <%#Eval("Total", "{0:0,0.00}")%>
                      </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    No se han encontrado materiales.
                </EmptyDataTemplate>
            </asp:ListView>
        </article>        
        <br /><br /><br /><br />
		<footer>
		    <p>Los precios incluyen IGV</p>
            <p>Este documento no es comprobante de pago</p>
		</footer>
	</div>
    </form>
	
	<%--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>--%>
	<script src="js/libs/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script type="text/javascript">!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
	<script src="js/plugins.js" type="text/javascript"></script>
	<script src="js/script.js" type="text/javascript"></script>
	<!--[if lt IE 7 ]>
	<script src="js/libs/dd_belatedpng.js"></script>
	<script> DD_belatedPNG.fix('img, .png_bg');</script>
	<![endif]--></body>
</html>